package com.example.service;

import com.example.entity.Employee;
import com.example.entity.LoginInfo;
import com.example.query.EmpQueryParam;
import com.example.util.PageResult;

import java.time.LocalDate;
import java.util.List;

public interface EmployeeService {
    List<Employee> findAll();
//    PageResult page(Integer page, Integer pageSize, String name , Integer gender, LocalDate begin, LocalDate end);
    PageResult page(EmpQueryParam empQueryParam);

    void save(Employee employee);

    void deleteByIds(List<Integer> ids);

    Employee getById(Integer id);

    void update(Employee employee);

    LoginInfo login(Employee employee);
}